package cn.cjxy.day13springboot_mybatis_02.mapper;

import cn.cjxy.day13springboot_mybatis_02.domain.Student;
import cn.cjxy.day13springboot_mybatis_02.query.StudentQuery;

import java.util.List;

/**
 * @author huangjie
 * @date 2025/10/17
 */

public interface StudentMapper {

    //总条数
    Integer count();
    //带参数分页查询
    List<Student> page(StudentQuery studentQuery);
    //批量删除
    void batchDelete(Long[] ids);
    //批量新增
    void batchAdd(List<Student> students);

    //根据班级id查询学生信息
    List<Student>getByClassId(Long classId);
    //查询所有学生，带有班级信息
    List<Student> getAll();
}
